// post /api/community/activity/miniapp/activityList 小程序用户查看当前参与的活动信息
// post /api/community/activity/miniapp/detail/{activityCode} 获取社区活动详情
// get  /api/community/activity/miniapp/signIn/{activityCode} 社区活动签到

// 小程序用户查看当前参与的活动信息
export const activityListApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/activity/miniapp/activityList`, data)
	return res
}
// 获取社区活动详情
export const activityDetailApi = async (activityCode) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/activity/miniapp/detail/${activityCode}`)
	return res
}

// 社区活动签到
export const signInApi = async (activityCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/community/activity/miniapp/signIn/${activityCode}`)
	return res
}
